package org.lq.his.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.pojo.Registration;

public interface RegistrationDao extends CommonDao<Registration, Integer>{
	
	public List<Registration> getByToday(@Param("start") int start,@Param("limit") int limit,@Param("condition") Registration condition,@Param("column") String column,@Param("orderBy") String orderBy);
	
	public Registration getYesNo(@Param("condition")Registration condition);
	
	/**
	 * 根据病人id ,上下午,时间来查询
	 * @param patientId
	 * @param stage
	 * @param date
	 * @return
	 */
/*	public Registration getShifouYiDengji(@Param("id")Integer id,@Param("stage")Integer stage,@Param("date")Date date);
	*/
	/**
	 * 根据医生id 查询当前待诊病人
	 * @param doctorId
	 * @return
	 */
	public List<Registration> getTodayByDoctorId(@Param("doctorId")Integer doctorId , @Param("start") int start,@Param("limit") int limit,@Param("condition") Registration condition,@Param("column") String column,@Param("orderBy") String orderBy);
	
	/**
	 * 修改为已登记
	 * @param id
	 */
	public void updateRegisterState(Integer id);
	
	
}
